<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>集团火电机组冷端优化系统 - 登录</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* 颜色规范 */
            --primary-bg: #0f172a;       /* 主背景色 */
            --secondary-bg: #1e293b;     /* 次要背景色 */
            --card-bg: #1a2435;          /* 卡片背景色 */
            --accent: #5eead4;           /* 强调色 */
            --accent-hover: #88f3e2;     /* 强调悬停色 */
            --text-primary: #e2e8f0;     /* 主要文字色 */
            --text-secondary: #94a3b8;   /* 次要文字色 */
            --text-tertiary: #64748b;    /* 三级文字色 */
            --border-color: #334155;     /* 边框色 */
            
            /* 字体规范 */
            --font-main: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            
            /* 间距规范 */
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            
            /* 圆角规范 */
            --radius-sm: 4px;
            --radius-md: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: var(--primary-bg);
            color: var(--text-primary);
            font-family: var(--font-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }
        
        /* 科技背景图案 */
        .tech-pattern {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            opacity: 0.03;
            background-image: 
                linear-gradient(rgba(94, 234, 212, 0.5) 1px, transparent 1px),
                linear-gradient(90deg, rgba(94, 234, 212, 0.5) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: -2;
        }
        
        /* 流动线条容器 */
        .flow-lines {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
        }
        
        /* 单条流动线 */
        .flow-line {
            position: absolute;
            height: 1px;
            background: var(--accent);
            opacity: 0.2;
            transform-origin: left;
        }
        
        .login-container {
            max-width: 450px;
            width: 90%;
            margin: auto;
            padding: var(--spacing-lg);
        }
        
        .login-header {
            text-align: center;
            margin-bottom: var(--spacing-xl);
            padding-bottom: var(--spacing-md);
            position: relative;
        }
        
        .login-header::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background: var(--accent);
            margin: var(--spacing-md) auto;
            border-radius: 2px;
            opacity: 0.7;
        }
        
        .login-header h1 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: var(--spacing-sm);
            color: var(--text-primary);
        }
        
        .login-header p {
            font-size: 1rem;
            color: var(--text-secondary);
        }
        
        .login-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: var(--spacing-xl);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }
        
        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), transparent);
            opacity: 0.7;
        }
        
        .form-group {
            margin-bottom: var(--spacing-lg);
        }
        
        label {
            display: block;
            margin-bottom: var(--spacing-sm);
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .input-field {
            width: 100%;
            padding: var(--spacing-md);
            background: rgba(26, 36, 53, 0.7);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-family: var(--font-main);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }
        
        .input-field i {
            color: var(--text-tertiary);
        }
        
        .input-field input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 1rem;
            flex-grow: 1;
            outline: none;
        }
        
        .input-field:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.1);
        }
        
        .captcha-container {
            display: flex;
            gap: var(--spacing-md);
        }
        
        .captcha-img {
            background: rgba(26, 36, 53, 0.7);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            width: 120px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .captcha-img:hover {
            border-color: var(--accent);
        }
        
        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-lg);
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }
        
        .checkbox-group label {
            margin-bottom: 0;
            color: var(--text-secondary);
            font-weight: normal;
        }
        
        .forgot-link {
            color: var(--accent);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }
        
        .forgot-link:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: var(--spacing-md) var(--spacing-lg);
            border-radius: var(--radius-sm);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-family: var(--font-main);
            font-size: 1rem;
            text-align: center;
            width: 100%;
            gap: var(--spacing-sm);
        }
        
        .btn-primary {
            background: rgba(94, 234, 212, 0.2);
            color: #ffffff;
            border: 1px solid rgba(94, 234, 212, 0.4);
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }
        
        .btn-primary:hover {
            background: rgba(94, 234, 212, 0.3);
            box-shadow: 0 0 8px rgba(94, 234, 212, 0.3);
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: var(--spacing-lg);
            margin-top: var(--spacing-xl);
        }
        
        .footer-link {
            color: var(--text-tertiary);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s;
        }
        
        .footer-link:hover {
            color: var(--text-secondary);
        }
        
        .copyright {
            text-align: center;
            color: var(--text-tertiary);
            font-size: 0.85rem;
            margin-top: var(--spacing-md);
            padding: var(--spacing-lg) 0;
        }
        
        @media (max-width: 768px) {
            .login-container {
                padding: var(--spacing-md);
            }
            
            .login-card {
                padding: var(--spacing-lg);
            }
            
            .captcha-container {
                flex-direction: column;
            }
            
            .captcha-img {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="tech-pattern"></div>
    <div class="flow-lines" id="flowCanvas"></div>
    
    <div class="login-container">
        <div class="login-header">
            <h1><i class="fas fa-bolt"></i> 集团火电机组冷端优化系统</h1>
            <p>智能分析平台 · 安全登录</p>
        </div>
        
        <div class="login-card">
            <form id="loginForm">
                <div class="form-group">
                    <label for="username"><i class="fas fa-user"></i> 用户名</label>
                    <div class="input-field">
                        <i class="fas fa-user"></i>
                        <input type="text" id="username" name="username" placeholder="请输入用户名" required>
                    </div>
                </div>
                
                <div class="form-group">
                    <label for="password"><i class="fas fa-lock"></i> 密码</label>
                    <div class="input-field">
                        <i class="fas fa-lock"></i>
                        <input type="password" id="password" name="password" placeholder="请输入密码" required>
                    </div>
                </div>
                
                <div class="form-group">
                    <label for="captcha"><i class="fas fa-shield-alt"></i> 验证码</label>
                    <div class="captcha-container">
                        <div class="input-field">
                            <i class="fas fa-shield-alt"></i>
                            <input type="text" id="captcha" name="captcha" placeholder="请输入验证码" required>
                        </div>
                        <div class="captcha-img" id="captchaImg" title="点击刷新验证码">
                            <i class="fas fa-sync-alt"></i> 验证码
                        </div>
                    </div>
                </div>
                
                <div class="remember-forgot">
                    <div class="checkbox-group">
                        <input type="checkbox" id="remember">
                        <label for="remember">记住我</label>
                    </div>
                    <a href="#" class="forgot-link">忘记密码？</a>
                </div>
                
                <button type="submit" class="btn btn-primary">
                    <i class="fas fa-sign-in-alt"></i> 登录系统
                </button>
            </form>
        </div>
        
        <div class="footer-links">
            <a href="#" class="footer-link">用户手册</a>
            <a href="#" class="footer-link">技术支持</a>
            <a href="#" class="footer-link">隐私政策</a>
        </div>
        
        <div class="copyright">
            © 2023 集团火电机组冷端优化系统 | 版本 2.1.0
        </div>
    </div>
    
    <script>
        // 简单的表单提交处理
        document.getElementById('loginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            
            // 实际项目中这里会有AJAX请求
            console.log('登录信息:', {username, password});
            alert('登录请求已发送，实际项目中会跳转到首页');
            // window.location.href = '/group-dashboard'; // 实际跳转
        });
        
        // 验证码刷新功能
        document.getElementById('captchaImg').addEventListener('click', function() {
            this.innerHTML = '刷新中...';
            setTimeout(() => {
                this.innerHTML = '<i class="fas fa-sync-alt"></i> 新验证码';
            }, 500);
        });
        
        // 流动线条特效
        function initFlowLines() {
            const container = document.getElementById('flowCanvas');
            const numberOfLines = 30;
            const flowLines = [];
            
            // 创建线条
            for (let i = 0; i < numberOfLines; i++) {
                const line = document.createElement('div');
                line.className = 'flow-line';
                
                // 随机位置和长度
                const top = Math.random() * 100;
                const left = -Math.random() * 100 - 10;
                const length = 50 + Math.random() * 200;
                const duration = 20 + Math.random() * 30;
                
                // 设置初始位置和动画
                line.style.top = `${top}vh`;
                line.style.left = `${left}%`;
                line.style.width = `${length}px`;
                line.style.animation = `flowAnimation ${duration}s linear infinite`;
                
                // 随机旋转角度
                const angle = -60 + Math.random() * 120;
                line.style.transform = `rotate(${angle}deg)`;
                
                // 随机透明度变化
                line.style.opacity = 0.05 + Math.random() * 0.15;
                
                // 添加延迟
                line.style.animationDelay = `${Math.random() * 10}s`;
                
                container.appendChild(line);
                flowLines.push(line);
            }
            
            // 添加动画关键帧
            const style = document.createElement('style');
            style.textContent = `
                @keyframes flowAnimation {
                    0% {
                        transform: rotate(${Math.random() * 10}deg) translateX(0);
                        opacity: 0.1;
                    }
                    10% {
                        opacity: ${0.05 + Math.random() * 0.15};
                    }
                    90% {
                        opacity: ${0.05 + Math.random() * 0.15};
                    }
                    100% {
                        transform: rotate(${Math.random() * 10}deg) translateX(120vw);
                        opacity: 0.1;
                    }
                }
            `;
            document.head.appendChild(style);
        }
        
        // 初始化流动线条
        window.addEventListener('load', initFlowLines);
    </script>
</body>
</html>
